package com.chevip.article.sync.runner;

import com.chevip.article.sync.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class SyncArticleCommandRunner implements CommandLineRunner {
    @Autowired
    private ArticleService articleService;

    @Override
    public void run(String... args) throws Exception {
        articleService.syncArticle();
    }
}
